var data = function()
{
    {% with object.text_fields.all as object_list %}
        {% for object in object_list %}$("[data-text='{{ object.key }}']").html("{{ object.value|safe }}");{% endfor %}
    {% endwith %}
    {% with object.image_fields.all as object_list %}{% for object in object_list %}
            $("img[data-attr-src='{{ object.key }}']").attr("src", "http://192.168.1.16:8000{{ object.value.url }}");
    {% endfor %}{% endwith %}
}

data();